entry: Make touch selection work with mouse
authorMatthias Clasen <mclasen@redhat.com>
Tue, 9 Jun 2015 19:50:30 +0000 (15:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 9 Jun 2015 19:50:30 +0000 (15:50 -0400)
The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.

gtk/gtkentry.c

index eb83363c473b3ddc4c98102015562906d4bad8c5..26d5b1210ed23956e2213f303d546413d3a4b6c5 100644 (file)
@@ -9767,6 +9767,7 @@ append_bubble_action (GtkEntry     *entry,
   GtkWidget *item, *image;
 
   item = gtk_button_new ();
+  gtk_button_set_focus_on_click (GTK_BUTTON (item), FALSE);
   image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
   gtk_widget_show (image);
   gtk_container_add (GTK_CONTAINER (item), image);